<%@ page language="java" contentType="text/html; charset=UTF-8"
		 pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="f"%>
<%@ taglib uri="/mytag" prefix="yjd"%>
<div class="wrap" >
	<div class="h_a">搜索</div>
	<form
			action="${requestScope.FPWEB.rootPath }/push/all${requestScope.FPWEB.urlStuff}"
			method="get" autocomplete="off">
		<div class="search_type cc">
			<label>会员：</label><input name="user_id" type="text"
									 class="input length_3 mr10" value="${maps.user_id}"
									 placeholder="用户ID">
			<button type="submit" class="btn btn_submit length_1">搜索</button>
		</div>
	</form>
	<div class="table_list">
		<c:set var="hashData"
			   value="${models!=null && fn:length(models)>1 }" />
		<table width="100%">
			<thead>
			<tr>
				<td>ID</td>
				<td>用户ID</td>
				<td>推送状态</td>
				<td>是否已读</td>
				<td>推送内容</td>
				<td>备注</td>
				<td>推送时间</td>
			</tr>
			</thead>
			<tbody id="J_word_list">
			<c:forEach items="${pager.pagerModel.dataList }" var="item" varStatus="i">
				<tr>
					<td>${item.id}</td>
					<td>${item.user_id}</td>
					<td><c:choose><c:when test="${item.status == 0}">待推送</c:when><c:when test="${item.status == 1}">已推送</c:when></c:choose></td>
					<td><c:choose><c:when test="${item.readed == 0}">未读</c:when><c:when test="${item.readed == 1}">已读</c:when></c:choose></td>
					<td>${item.context}</td>
					<td>${item.message}</td>
					<td>${item.strMap.create_time}</td>
					<td>${item.strMap.update_time}</td>
				</tr>
			</c:forEach>
			</tbody>
		</table>
	</div>
	<!-- 分页 -->
	<%@ include file="../public/pager/pager.pagination.jsp" %>
</div>
